﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LaKaLaPay.Request
{
    public class MicroPayReq
    {
        public string merchant_no { get; set; }
        public string term_no { get; set; }
        public string auth_code { get; set; }

        /// <summary>
        /// 交易金额（单位分）
        /// </summary>
        public string total_amount { get; set; }
        /// <summary>
        /// 商户系统唯一
        /// </summary>
        public string out_trade_no { get; set; }

        public Location_Info location_info { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string subject { get; set; }

    }

    public class JSAPIPayReq
    {
        public string merchant_no { get; set; }
        public string term_no { get; set; }
        public string out_trade_no { get; set; }
        public string auth_code { get; set; }
        public string total_amount { get; set; }
        public string trans_type { get; set; }
        public string account_type { get; set; }
        public string notify_url { get; set; }

        public Location_Info location_info { get; set; }
        public string out_order_no { get; set; }

        public string subject { get; set; }

        public Acc_Busi_Fields acc_busi_fields { get; set; }
    }

    public class Location_Info
    {
        public string request_ip { get; set; }

        public string location { get; set; }

    }
}
